package com.xingkeduo.feign;

import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.xingkeduo.feign.impl.OrderFeignServiceImpl;

@EnableDiscoveryClient
@EnableFeignClients
@FeignClient(value = "business-order", fallback = OrderFeignServiceImpl.class)
public interface OrderFeignService {

	// 查询用户信息-主要是2线用户信息:用户id，用户姓名，部门id，部门名称-作废
	@GetMapping("/api/order/query/user/type")
	@Deprecated
	String doGet(@RequestParam(value = "userId") String userId, @RequestParam(value = "storeId") String storeId);

	//查询该卡是否服务中
	@GetMapping("/api/order/card/ticket")
	String cardTicket(@RequestParam(value = "userId") String userId, @RequestParam(value = "cardTickId") String cardTickId,@RequestParam(value = "marketingType") String marketingType);

}
